package com.evildog.workspace.life.application.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.evildog.workspace.dependencies.mybatis.object.QueryConditionDTO;
import com.evildog.workspace.life.application.bo.AlbumsPhotoBO;
import com.evildog.workspace.life.application.bo.PhotoBO;
import com.evildog.workspace.life.application.dto.PhotoDTO;
import com.evildog.workspace.life.application.dto.PhotoListDTO;
import com.evildog.workspace.life.application.dto.PhotoStarDTO;
import com.evildog.workspace.life.application.entity.Photo;

import java.util.List;

/**
 * <p>
 * photo Service
 * </p>
 *
 * @author evildog
 * @since 2020-07-18
 */
public interface PhotoService extends IService<Photo> {

    /**
    * 获取List
     */
    List<AlbumsPhotoBO> getList(List<QueryConditionDTO> queryCondition, PhotoListDTO dto);

    /**
    * 获取详情
    */
    PhotoBO getDetailById(Long id);

    /**
    * 获取详情
    */
    boolean updateById(Long id, PhotoDTO param);

    /**
    * 获取详情
    */
    boolean save(PhotoDTO param);

    boolean updateStar(Long id, PhotoStarDTO convert);
}
